<?php echo $this->Html->link(__('Create New Guide', true),
		                    array('action' => 'add'),
        		            array('escape' => false,'class' => 'button dark_w_arrow med fr button_lineheight14')
                		);
?>
<h1 class="page_heading"><?php __('My Guides'); ?></h1>
<!--============================  TABS ============================-->
<section class="tabbed_content">
  <!--========= TABS  =========-->
  <ul class="tabs primary_tabs">
    <li class="current"><a href="#"><?php __('Created by Me'); ?></a></li>
    <li><a href="#"><?php __('Favourites'); ?></a></li>
  </ul>
  <!--========= TABS CONTENT  =========-->
  <!-- PANE 1 -->
  <div class="pane">
    <!-- GUIDES LIST -->
    <ul class="guides_list">
		<?php
        $i = 0;
        foreach ($created_guides as $guide):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
        ?>
      <li class="clearfix"> <?php echo $this->Html->image('/images/guide_size1.jpg', array('alt'=> $guide['Guide']['name'], 'border' => '0', 'class' => 'guide_image', 'width' => 83, 'height' => 83, )); ?>
        <h3 class="guide_title"><?php echo $this->Html->link($guide['Guide']['name'], array('action' => 'view', $guide['Guide']['id'])); ?></h3>
        by Echo | 2 days ago | 10 Venues <span class="destination"><strong>Destination:</strong> <?php echo $this->Html->link($guide['Marker']['name'], array('controller' => 'markers', 'action' => 'view', $guide['Marker']['id'])); ?></span>
        <span class="actions">
			<?php echo $this->Html->link(
                    $this->Html->image('/images/edit_icon.png', array('alt'=> __('Edit', true), 'border' => '0','width' => '13','height' => '13')),
                    array('action' => 'edit', $guide['Guide']['id']),
                    array('escape' => false)
                );
            ?>
            <?php 
			echo $this->Html->link(
                    $this->Html->image('/images/delete_icon.png', array('alt'=> __('Delete', true), 'border' => '0','width' => '13','height' => '13')),
                    array('action' => 'delete', $guide['Guide']['id']),
                    array('escape' => false), 
					sprintf(__('Are you sure you want to delete guide: %s?', true), $guide['Guide']['name'])
                );
            ?>
		</span>
        <div class="rating"><?php echo $this->Html->image('/images/rating.png', array('alt'=> __('Rating', true), 'border' => '0', 'width' => 88, 'height' => 17)); ?></div>
      </li>
      <?php endforeach; ?>
    </ul>
  </div>
  <!-- PANE 2 -->
  <div class="pane">
    <!-- GUIDES LIST -->
    <ul class="guides_list">
		<?php
        $i = 0;
        foreach ($favorite_guides as $guide):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
        ?>
      <li class="clearfix"> <?php echo $this->Html->image('/images/guide_size1.jpg', array('alt'=> $guide['Guide']['name'], 'border' => '0', 'class' => 'guide_image', 'width' => 83, 'height' => 83, )); ?>
        <h3 class="guide_title"><?php echo $this->Html->link($guide['Guide']['name'], array('action' => 'view', $guide['Guide']['id'])); ?></h3>
        by Echo | 2 days ago | 10 Venues <span class="destination"><strong>Destination:</strong> <?php echo $this->Html->link($guide['Marker']['name'], array('controller' => 'markers', 'action' => 'view', $guide['Marker']['id'])); ?></span>
        <span class="actions">
			<?php echo $this->Html->link(
                    $this->Html->image('/images/edit_icon.png', array('alt'=> __('Edit', true), 'border' => '0','width' => '13','height' => '13')),
                    array('action' => 'edit', $guide['Guide']['id']),
                    array('escape' => false)
                );
            ?>
            <?php 
			echo $this->Html->link(
                    $this->Html->image('/images/delete_icon.png', array('alt'=> __('Delete', true), 'border' => '0','width' => '13','height' => '13')),
                    array('action' => 'delete', $guide['Guide']['id']),
                    array('escape' => false), 
					sprintf(__('Are you sure you want to delete guide: %s?', true), $guide['Guide']['name'])
                );
            ?>
		</span>
        <div class="rating"><?php echo $this->Html->image('/images/rating.png', array('alt'=> __('Rating', true), 'border' => '0', 'width' => 88, 'height' => 17)); ?></div>
      </li>
      <?php endforeach; ?>
    </ul>
  </div>
</section>